package com.yunduansing.demo.model.dictionary;

import java.util.List;

import com.yunduansing.demo.entity.DictionaryEntity;

import lombok.Data;

@Data
public class DictionaryTreeModel extends DictionaryEntity {

    /**
     *
     */
    private static final long serialVersionUID = 1L;
    private String categoryCode;
    private String categoryName;
    private List<DictionaryTreeModel> children;

    public DictionaryTreeModel(){}
    public DictionaryTreeModel(DictionaryEntity entity,List<DictionaryTreeModel> children){
        this.children=children;
        this.setCategoryId(entity.getCategoryId());
        this.setId(entity.getId());
        this.setPid(entity.getPid());
        this.setName(entity.getName());
        this.setStatus(entity.getStatus());
        this.setRemark(entity.getRemark());
        this.setValue(entity.getValue());
        this.setSeq(entity.getSeq());
        this.setKey(entity.getKey());
    }
}